// 权限管理
import request from '@/utils/request'

// 获邀请医生列表
export function inviteDoctor(data) {
  return request({
    url: '/db/DbTeamDoctor/inviteDoctor',
    method: 'post',
    data
  })
}

// 邀请医务
export function addRelationDoctor(data) {
  return request({
    url: '/db/DbTeamDoctor/addRelationDoctor',
    method: 'post',
    data
  })
}
// 获取当前库医生列表
export function getTeamList(data) {
  return request({
    url: '/db/DbTeamDoctor/getTeamList',
    method: 'post',
    data
  })
}
// 移除医务
export function delRelationDoctor(data) {
  return request({
    url: '/db/DbTeamDoctor/delRelationDoctor',
    method: 'post',
    data
  })
}
// 获取当前医生的权限列表
export function getTreeList(data) {
  return request({
    url: '/db/DbAuth/getTreeList',
    method: 'post',
    data
  })
}
// 修改医务权限
export function editDcotorAuth(data) {
  return request({
    url: '/db/DbTeamDoctor/editDcotorAuth',
    method: 'post',
    data
  })
}
